package com.zenith.edu.po.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zenith.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("edu_certificate")
@Schema(name = "EduCertificate", description = "证书实体")
public class EduCertificate extends BaseEntity {
    
    @Schema(description = "学生ID")
    private Long studentId;
    
    @Schema(description = "课程ID")
    private Long courseId;
    
    @Schema(description = "证书编号")
    private String certNo;
    
    @Schema(description = "颁发时间")
    private LocalDateTime issueTime;
    
    @Schema(description = "有效期（为空则表示永久）")
    private LocalDateTime expireTime;
    
    @Schema(description = "状态：1-有效 2-作废")
    private Integer status;
}